package day02;

public class Demo05 {

	public static void main(String[] args) {
		
		
		
		
		
		

		String reg=".+\\.xls[xbm]?";

		String name="guyagui.xls";
		
		System.out.println(reg);
		boolean b=name.matches(reg);
		System.out.println(b);
//		//15601035818
		
		String reg1="(0086|\\+86)?\\s*1\\d{10}";
		String phoneNum="0086 17625328759";
		b=phoneNum.matches(reg1);
		System.out.println(b);
		
		
		
		
		
	}

}
